package design.pattern.application.CommandAndChain;

/**
 * @program JavaBase
 * @description:
 * @author: zhanglu
 * @create: 2020-05-22 14:36:00
 */
public class FileManager {

    //ls 命令
    public static String ls(String path){
        return "/file01/file02/file03/file03";
    }
    //ls -l命令
    public static String ls_l(String path){
        String str = "drw-rw-rw root system 1024 2009-8-20 10:23 file1\n";
        str = str + "drw-rw-rw root system 1024 2009-8-20 10:23 file2\n";
        str = str + "drw-rw-rw root system 1024 2009-8-20 10:23 file3";
        return str;
    }
    //ls -a命令
    public static String ls_a(String path){
        String str = ".\n..\nfile1\nfile2\nfile3"; return str;
    }

}
